﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BCEntity.TMS.Agent.AgentRecord
{
    /// <summary>
    /// 代理商信息
    /// </summary>
    public class AgentRecordEntity
    {
        /// <summary>
        /// 代理商记录Id
        /// </summary>
        [Key]
        [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        public long AgentRecordId { get; set; }

        /// <summary>
        /// 公司Id
        /// </summary>
        public int CompanyId { get; set; }

        /// <summary>
        /// 代理商级别
        /// </summary>
        public int AgentLevel { get; set; }

        /// <summary>
        /// 父级公司Id
        /// </summary>
        public int ParentCompanyId { get; set; }

        /// <summary>
        /// 公司路径码
        /// </summary>
        public string CompanyPathCode { get; set; }

        /// <summary>
        /// 创建人Id
        /// </summary>
        public long CreateAdminId { get; set; }

        /// <summary>
        /// 创建人
        /// </summary>
        public string CreateAdminName { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreateTime { get; set; }

        /// <summary>
        /// 修改时间
        /// </summary>
        public DateTime UpdateTime { get; set; }

        /// <summary>
        /// 修改人Id
        /// </summary>
        public long? EditAdminId { get; set; }

        /// <summary>
        /// 修改人
        /// </summary>
        public string EditAdminName { get; set; }
        /// <summary>
        /// 代理商Uuid
        /// </summary>
        public string AgentRecordUuid { get; set; }

        /// <summary>
        /// 启用手动指派
        /// </summary>
        public bool EnabledManualAssign { get; set; }

        /// <summary>
        /// 手动指派等待时间(秒)
        /// </summary>
        public int ManualAssignWaitTime { get; set; }
    }
}
